<?php if (Helper::isLogin()) { ?>
    <table width="980px" border="0" cellpadding="3" cellspacing="3" align="center">
        <tr>
            <td width="100%" colspan="2" align="center" class="bg-table-admin"><div><img src="<?php echo BASE_URL . "media/img/admin-button.png"; ?>"/></div><h2>Admin Control Panel</h2><br /></td>
        </tr>
        <tr>
            <td width="20%" class="border" valign="top">
                <a href="<?php echo BASE_URL ?>" target="blank"><img src="<?php echo BASE_URL . "media/img/admin.png"; ?>" />Home</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?php echo BASE_URL . "Account/LogOut"; ?>"><img src="<?php echo BASE_URL . "media/img/logout.png"; ?>"/> Logout</a>

                <table width="100%" border="0">
                    <tr>
                        <td class="border-td"><img src="<?php echo BASE_URL . "media/img/main.png"; ?>"/> TIMETABLE</td>
                    </tr>
                    <tr>
                        <td class="border">
                            <a href="<?php echo BASE_URL . "schedule/index"; ?>"><img src="<?php echo BASE_URL . "media/img/manager.png"; ?>"/> Manager</a> <br />
                            <a href="<?php echo BASE_URL . "schedule/create"; ?>"><img src="<?php echo BASE_URL . "media/img/add.png"; ?>"/> Add all lession of the subject</a><br />
                            <a href="<?php echo BASE_URL . "schedule/single"; ?>"><img src="<?php echo BASE_URL . "media/img/add.png"; ?>"/> Add single lession</a> <br />

                        </td>
                    </tr>
                    
                    <tr>
                        <td class="border-td"><img src="<?php echo BASE_URL . "media/img/student-icon.png"; ?>"/> COURSE</td>
                    </tr>
                    <tr>
                        <td class="border">
                            <a href="<?php echo BASE_URL . 'course/index' ?>"><img src="<?php echo BASE_URL . "media/img/manager.png"; ?>"/> Manager</a> | 
                            <a href="<?php echo BASE_URL . 'course/create' ?>"><img src="<?php echo BASE_URL . "media/img/add.png"; ?>"/> Add</a>
                        </td>
                    </tr>
                    <tr>
                        <td class="border-td"><img src="<?php echo BASE_URL . "media/img/student-icon.png"; ?>"/> CLASS</td>
                    </tr>
                    <tr>
                        <td class="border">
                            <a href="<?php echo BASE_URL . 'class/index' ?>"><img src="<?php echo BASE_URL . "media/img/manager.png"; ?>"/> Manager</a> | 
                            <a href="<?php echo BASE_URL . 'class/create' ?>"><img src="<?php echo BASE_URL . "media/img/add.png"; ?>"/> Add</a>
                        </td>
                    </tr>
                    
                    <tr>
                        <td class="border-td"><img src="<?php echo BASE_URL . "media/img/student-icon.png"; ?>"/> SUBJECT</td>
                    </tr>
                    <tr>
                        <td class="border">
                            <a href="<?php echo BASE_URL . 'subject/index' ?>"><img src="<?php echo BASE_URL . "media/img/manager.png"; ?>" /> Manager</a> | 
                            <a href="<?php echo BASE_URL . 'subject/create' ?>"><img src="<?php echo BASE_URL . "media/img/add.png"; ?>"/> Add</a>
                        </td>
                    </tr>
                    <tr>
                        <td class="border-td"><img src="<?php echo BASE_URL . "media/img/student-icon.png"; ?>"/> LESSION</td>
                    </tr>
                    <tr>
                        <td class="border">
                            <a href="<?php echo BASE_URL . 'lession/index' ?>"><img src="<?php echo BASE_URL . "media/img/manager.png"; ?>"/> Manager</a> | 
                            <a href="<?php echo BASE_URL . 'lession/create' ?>"><img src="<?php echo BASE_URL . "media/img/add.png"; ?>"/> Add</a>
                        </td>
                    </tr>

                    <tr>
                        <td colspan="2">
                            <div class ="line"></div>                                  
                        </td>
                    </tr>
                    <tr>
                        <td class="border-td"><img src="<?php echo BASE_URL . "media/img/manager-category.png"; ?>"/> CATEGORY</td>
                    </tr>
                    <tr>
                        <td class="border">
                            <a href="<?php echo BASE_URL . 'categories/index' ?>"><img src="<?php echo BASE_URL . "media/img/manager.png"; ?>"/> Manager</a> | 
                            <a href="<?php echo BASE_URL . 'categories/create' ?>"><img src="<?php echo BASE_URL . "media/img/add.png"; ?>"/> Add</a> 
                        </td>
                    </tr>

                    <tr>
                        <td class="border-td"><img src="<?php echo BASE_URL . "media/img/manager-news.png"; ?>"/> MANAGER NEWS</td>
                    </tr>
                    <tr>
                        <td class="border">
                            <a href="<?php echo BASE_URL . 'news/index' ?>"><img src="<?php echo BASE_URL . "media/img/manager.png"; ?>"/> Manager</a> | 
                            <a href="<?php echo BASE_URL . 'news/create' ?>"><img src="<?php echo BASE_URL . "media/img/add.png"; ?>"/> Add</a>
                        </td>
                    </tr>   




                    <tr>
                        <td colspan="2">
                            <div class ="line"></div>                                
                        </td>
                    </tr>

                    <tr>
                        <td class="border-td"><img src="<?php echo BASE_URL . "media/img/manager-members.png"; ?>"/> MEMBERS</td>
                    </tr>
                    <tr>
                        <td class="border">
                            <a href="<?php echo BASE_URL . 'user/index' ?>"><img src="<?php echo BASE_URL . "media/img/manager.png"; ?>"/> Manager</a> | 
                            <a href="<?php echo BASE_URL . 'user/create' ?>"><img src="<?php echo BASE_URL . "media/img/add.png"; ?>" /> Add</a>
                        </td>
                    </tr>

                </table>

            </td>
            <td width="80%" class="border" valign="top">

            <?php } ?>